package com.gm.blog.enums;

import lombok.Getter;

@Getter
public enum StateEnums {
    /**
     * 状态码枚举，所有的状态码都在这里编写
     */
    /**
     * 逻辑删除状态
     */
    DELETED(1,"已删除"),
    NOT_DELETED(0,"未删除"),
    /**
     * 启用状态
     */
    ENABLED(1,"启用"),
    NOT_ENABLE(0,"未启用"),
    /**
     * 性别状态
     */
    SEX_MAN(1,"男"),
    SEX_WOMEN(0,"女"),
    /**
     * 请求访问状态枚举
     */
    REQUEST_SUCCESS(1,"请求成功"),
    REQUEST_FAIL(0,"请求失败"),
    ;
    private Integer code;
    private String msg;
    StateEnums(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
